<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}-{$Think.lang.web_name}</title>
    {include file="comm/header"/}
</head>
<body>
{include file="comm/left_menu"/}
{include file="comm/top_menu"/}
<div class="container main">
    <div class="col-sm-12 border-bottom text-right"><a class="btn btn-primary mgr-10" href="/Caches/cache_list/id/{$cache.cate_id}"><i class="fa fa-list-ul"></i>&nbsp;{$Think.lang.cache_list}</a></div>

    <div class="col-sm-12">
        <div class="col-sm-12"> &nbsp;</div>
        <form class="form-horizontal" method="post" action="/Caches/cache_save/">

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_name}</label>
                <div class="col-sm-3">
                    <input class="form-control" name="cache_name" value="{$cache.cache_name}" required>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_pid}</label>
                <div class="col-sm-3">
                    <select name="cache_pid" class="form-control">
                        <option value="0">{$Think.lang.select}</option>
                        {foreach name="cache_list" key="key" id="v" index="i"}
                        <option value="{$v.cache_id}" {if in_array($v.cache_id,[$cache.cache_pid])}selected{/if} >{$v.cache_name}</option>
                        {/foreach}

                    </select>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_menu_id}</label>
                <div class="col-sm-3">
                    <select name="cache_menu_id" class="form-control">
                        <option value="0">{$Think.lang.select}</option>
                        {foreach name="menu_list" key="key" id="v" index="i"}
                        <option value="{$v.menu_id}" {if in_array($v.menu_id,[$cache.cache_menu_id])} selected {/if} >{$v.menu_title}({$v.menu_name})</option>
                        {/foreach}
                    </select>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_param}</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" name="cache_param" value="{$cache.cache_param}" placeholder="/param1/value1/param2/value2/..">
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_key}</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" name="cache_key" value="{$cache.cache_key}">
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_pre}</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" name="cache_pre" value="{$cache.cache_pre}">
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">{$Think.lang.cache_desc}</label>
                <div class="col-sm-3">
                    <textarea class="form-control" name="cache_desc" rows="5" placeholder="250字内">{$cache.cache_desc}</textarea>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>



            <div class="form-group">
                <label class="col-sm-3 control-label"></label>
                <div class="col-sm-3">
                    <input type="hidden" name="cache_id" value="{$cache.cache_id}">
                    <input type="hidden" name="token" value="">
                    <button class="btn btn-primary" type="submit">提交保存</button>
                </div>
                <small class="col-sm-4 form-tips"></small>
            </div>

        </form>
    </div>
</div>
{include file="comm/footer"/}
<script type="text/javascript">


</script>
</body>
</html>